package cn.sylinx.horm.pool;

import com.jolbox.bonecp.BoneCPDataSource;

public class BoneCPDataSourceCreator extends AbstractDataSourceCreator<BoneCPDataSource> {

    @Override
    BoneCPDataSource createBaseDataSource(String driver, String url, String username, String password, String dbType) {

        BoneCPDataSource cds = new BoneCPDataSource();
        cds.setJdbcUrl(url);
        cds.setDriverClass(driver);
        cds.setUsername(username);
        cds.setPassword(password);
        return cds;
    }

}
